package net.xdclass.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import net.xdclass.coupon.model.CouponDO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yanghuanxi
 * @since 2023-12-05
 */
public interface CouponMapper extends BaseMapper<CouponDO> {

    /**
     * 扣减库存
     * @param couponId
     * @return
     */
    int reduceStock(@Param("couponId") Long couponId);
}
